<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml" xmlns:v-on="http://www.w3.org/1999/xhtml"
      xmlns:v="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>demo..</title>
    <script src="../common/vue.min.js" type="text/javascript"></script>
    <style type="text/css">

    </style>
</head>
<body>
<!--view-->


<div id="div_test">


</div>


<script type="text/javascript">

    var myMixin = {
        created: function () {
            this.hello()
        },
        methods: {
            hello: function () {
                console.log("myMixin hook say hello'");
            }
        }
    }

    var vm = new Vue({
        mixins: [myMixin],
        created: function () {
            console.log("vm hook say hello");
        }
    })


</script>

</body>
</html>